package com.lsc.www.day05;

public class StringTest {
    public static void main(String[] args) {
        String str =  "呵呵";
        String str1 = "呵";
        String str2 = str1+str1;

        if (str.equals(str2)){
            System.out.println("相同");
        }else {
            System.out.println("不同S");
        }

        if (str==str2){
            System.out.println("相同");
        }else {
            System.out.println("不同S");
        }
    }
}
